<?php

$rows = array( array('时间', '单号', '部门', '用户', '审批状态', '采购类型', '总数量') );
foreach($list as $d){
	$rows[] = array( date('Y/m/d H:i', $d['addtime']), $d['sno'], $d['dept_name'], $d['user_name'],
				DemandHelper::flow2text($d['audit_flow']), DemandHelper::type2text($d['type']) 	);
}
Exporter::csv($rows, '采购需求明细');

LoggerHelper::manage("导出采购需求明细");

?>
